package com.recharge.service;

import com.recharge.common.result.ResultDO;
import com.recharge.core.entity.VoucherRecordEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.recharge.domain.query.VoucherRecordQueryDO;
import com.recharge.domain.vo.VoucherRecordDO;

/**
 * <p>
 * 凭证核销记录 服务类
 * </p>
 *
 * @author Reagan
 * @since 2020-10-20
 */
public interface VoucherRecordService extends IService<VoucherRecordEntity> {

    /**
     * 添加凭证核销记录
     * @param domain
     * @return ResultDO
     */
    public ResultDO add(VoucherRecordDO domain);

    /**
     * 编辑凭证核销记录
     * @param domain
     * @return ResultDO
     */
    public ResultDO edit(VoucherRecordDO domain);

    /**
     * 返回凭证核销记录
     * @param id
     * @return ResultDO
     */
    public ResultDO get(String id);


    /**
     * 查找凭证核销记录
     * @param query
     * @return ResultDO
     */
    public ResultDO find(VoucherRecordQueryDO query);

    /**
     * 根据订单号查找凭证核销记录
     * @param domain
     * @return ResultDO
     */
    public ResultDO findByOrderNo(VoucherRecordQueryDO domain);
    /**
     * 根据供应单号查找凭证核销记录
     * @param domain
     * @return ResultDO
     */
    public ResultDO findByProviderOrderNo(VoucherRecordQueryDO domain);
    /**
     * 根据核销单id修改核销单状态
     * @param domain
     * @return ResultDO
     */
    public ResultDO editStatus(VoucherRecordDO domain);

}
